import Vue from 'vue'
import Router from 'vue-router'
import indexCommon from '@/homeComponents/indexCommon.vue'
import menuDetail from '@/homeComponents/menuDetail.vue'
import menuList from '@/homeComponents/menuList.vue'
import energy from '@/homeComponents/energy.vue'
import car from '@/homeComponents/car.vue'
import oilCar from '@/homeComponents/oilCar.vue'
import energyApply from '@/homeComponents/energyApply.vue'
import computerEnergy from '@/homeComponents/computerEnergy.vue'
import energySummary from '@/homeComponents/energySummary.vue'
import homeReport from '@/homeComponents/homeReport.vue'
import carReport from '@/homeComponents/carReport.vue'
import oilCollect from '@/homeComponents/oilCollect.vue'

Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/indexCommon'
    },
    {
      path: '/indexCommon',
      component: indexCommon
    },
    {
      path: '/menuDetail/:newsId',
      component: menuDetail
    },
    {
      path: '/menuList/:newsType',
      component: menuList
    },
    {
      path: '/energy',
      component: energy
    },
    {
      path: '/car',
      component: car
    },
    {
      path: '/oilCar',
      component: oilCar
    },
    {
      path: '/energyApply',
      component: energyApply
    },
    {
      path: '/computerEnergy',
      component: computerEnergy
    },
    {
      path: '/energySummary',
      component: energySummary
    },
    {
      path: '/homeReport/:typeTotal/:typeAmount',
      component: homeReport
    },
    {
      path: '/carReport',
      component: carReport
    },
    {
      path: '/oilCollect',
      component: oilCollect
    }
  ]
})
